package com.sakura.mall.coupon.seckillPromotion.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.coupon.seckillPromotion.domain.entity.SeckillPromotionEntity;
import com.sakura.mall.coupon.seckillPromotion.domain.request.AddSeckillPromotionRequest;
import com.sakura.mall.coupon.seckillPromotion.domain.request.UpdateSeckillPromotionRequest;
import com.sakura.mall.coupon.seckillPromotion.domain.request.SeckillPromotionPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.coupon.seckillPromotion.domain.vo.SeckillPromotionVo;

/**
 * 秒杀活动 service
 *
 * @author sakura
 */
public interface SeckillPromotionService extends IService<SeckillPromotionEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<SeckillPromotionVo> queryPage(SeckillPromotionPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddSeckillPromotionRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateSeckillPromotionRequest request);
}
